<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8" />
  <title>Promises/A+ Tests, Against Your Browser!</title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mocha/2.1.0/mocha.css" />
</head>
<body>
  <div id="mocha"></div>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/mocha/2.1.0/mocha.min.js"></script>
  <script>
    mocha.setup({ ui: "bdd", timeout: 1e3, slow: Infinity });

    window.adapter = {
      deferred: function () {
        var deferred = {};
        deferred.promise = new Promise(function (resolve, reject) {
          deferred.resolve = resolve;
          deferred.reject = reject;
        });
        return deferred;
      },
      resolved: Promise.resolve.bind(Promise),
      rejected: Promise.reject.bind(Promise)
    };
  </script>
  <script src="bundles/promises-aplus.js"></script>
  <script>
    mocha.run();
  </script>
</body>
</html>
